/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package beans.order;

/**
 *
 * @author xmarti
 */
public class Accounting {
    private long accountingCode;
    private String accountingDescripction;

    public Accounting(long accountingCode, String accountingDescripction) {
        this.accountingCode = accountingCode;
        this.accountingDescripction = accountingDescripction;
    }

    public long getAccountingCode() {
        return accountingCode;
    }

    public void setAccountingCode(long accountingCode) {
        this.accountingCode = accountingCode;
    }

    public String getAccountingDescripction() {
        return accountingDescripction;
    }

    public void setAccountingDescripction(String accountingDescripction) {
        this.accountingDescripction = accountingDescripction;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Accounting other = (Accounting) obj;
        if (this.accountingCode != other.accountingCode) {
            return false;
        }
        if ((this.accountingDescripction == null) ? (other.accountingDescripction != null) : !this.accountingDescripction.equals(other.accountingDescripction)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        return hash;
    }

    @Override
    public String toString() {
        return accountingDescripction;
    }
    
            
}
